﻿@page "{id:int?}"

@model Pages.Students.DetailsModel
@{
    ViewData["Title"] = "Detail Page";
}

<h2>Details</h2>

<div>
    <h4>Student</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.Student.No)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.Student.No)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.Student.Name)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.Student.Name)
        </dd>
        <dt>
            @Html.DisplayNameFor(model => model.Student.Gender)
        </dt>
        <dd>
            @Html.DisplayFor(model => model.Student.Gender)
        </dd>        
    </dl>
</div>
<div>
    <a asp-page="./Edit" asp-route-id="@Model.Student.Id">Edit</a> |
    <a asp-page="./Index">Back to List</a>
</div>